<template>
  <view class="iconTitle">
    <view class="icon"></view>
    <view class="text">{{ txt }}</view>
  </view>
</template>

<script>
export default {
  name: "iconTitle",
  props: {
    txt: {
      type: String,
      default: "",
    },
  },
};
</script>

<style lang="scss" scoped>
.iconTitle {
  display: flex;
  align-items: center;
  margin-top: 20rpx;
  margin-left: -30rpx;

  .icon {
    width: 10rpx;
    height: 28rpx;
    background: url("@/static/image/exam/result/title.svg") 100% 100% no-repeat;
    margin-right: 30rpx;
  }
}
</style>
